sort -t, -k2 -nr metals.txt | head -n 5 | tee >(awk -F, '{sum += $2} END {print "" sum}')
